#include <math.h>
#include <stdio.h>

void main() {
  FILE * arq = NULL;
  int num, soma, i, rs;
	
  if((arq = fopen("arq_601.txt","r")) != NULL) {
	while (!feof(arq)) { 
	  soma = 0;
	  for(i = 0; i < 5; i++) {
		rs = fscanf(arq, "%d", &num);
		soma = soma + num;
	  }
	  if(rs == 1)
		printf("%d\n", soma); 
	}
	fclose(arq);			
  }
}
